
#include <stdlib.h>
#include <string.h>

#include "log.h"

#include "upload.h"

struct evcpe_upload *evcpe_upload_new(void)
{
	struct evcpe_upload *method;

	evcpe_debug(__func__, "constructing evcpe_upload");
	
	if (!(method = calloc(1, sizeof(struct evcpe_upload)))) {
		evcpe_error(__func__, "failed to calloc evcpe_upload");
		return NULL;
	}
	memset(method, 0, sizeof(struct evcpe_upload));
	return method;
}

void evcpe_upload_free(struct evcpe_upload *method)
{
	if (!method) return;
	evcpe_debug(__func__, "destructing evcpe_upload");
	free(method);
}

struct evcpe_upload_response *evcpe_upload_response_new(void)
{
	struct evcpe_upload_response *method;

	evcpe_debug(__func__, "constructing evcpe_upload_response");
	
	if (!(method = calloc(1, sizeof(struct evcpe_upload_response)))) {
		evcpe_error(__func__, "failed to calloc evcpe_upload_response");
		return NULL;
	}
	memset(method, 0, sizeof(struct evcpe_upload_response));
	return method;
}

void evcpe_upload_response_free(struct evcpe_upload_response *method)
{
	if (!method) return;
	evcpe_debug(__func__, "destructing evcpe_upload_response");
	free(method);
}


